<!-- 头部总积分组件 -->
<template>
  <view class="integral">
    <view class="credits" style="display: flex;">
		<image src="../../static/waib/icon.png" style="width: 30px;height: 30px;margin-top: 25px; margin-right: 5px;"></image>
		<view class="text-2">{{ points }}</view>
    </view>
  </view>
</template>

<script>
export default {
  data() {
    return {
		lang:getApp().globalData.lang
	};
  },
  props: {
    points: {
      default: 0,
      type: Number
    },
    this_month: {
      default: 0,
      type: Number
    }
  },
  methods: {
    one() {
		this.$emit("calc")
    },
	shenqing(){
		this.$emit("shenqing")
	}
  }
}
</script>

<style lang="scss" scoped>
.integral {
  margin-top: 10px;
  height: 100rpx;
  background-size: cover;
  // border: 1px dashed #cccccc;
  border-radius: 20rpx;
  box-sizing: border-box;
  padding-left: 31rpx;
}

.gain {
  width: 180rpx;
  min-height: 45rpx;
  word-break: break-all;
  background: rgba(255, 255, 255, .46);
  border-radius: 14rpx 0rpx 0rpx 14rpx;
  float: right;
  margin-top: 24rpx;
  text-align: center;

  text {
    font-size: 24rpx;

    font-weight: 400;
    color: rgba(255, 255, 255, 0.88);
    line-height: 45rpx;
  }
}

.credits {
  position: relative;
  margin-top: 29rpx;
  display: flex;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
  width: 95%;
  height: 160rpx;

  .text-1 {
    font-size: 24rpx;

    line-height: 35rpx;
  }

  .text-2 {
    font-size: 80rpx;
    font-family: Impact;
    line-height: 120rpx;
    letter-spacing: 1px;
	color: #000;
  }

  .text-3 {
    font-size: 24rpx;

    line-height: 35rpx;
  }

  .text-4 {
    font-size: 35rpx;

    line-height: 49rpx;
  }
}
</style>
